package com.wxzz.elearing.evaluation.api.server;

import com.wxzz.elearing.evaluation.service.IBusinessCategoryService;
import com.wxzz.elearning.common.vo.ReturnVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;


@RestController
@RequestMapping("/evaluation-api")
public class EvaluationApi {

    @Autowired
    private IBusinessCategoryService businessCategoryService;

    /**
     * 根据行业类目id查询行业类目名称
     * @param businessCategoryId
     * @return
     */
    @RequestMapping(value = "selectBusinessCategoryById/{businessCategoryId}", method = RequestMethod.POST)
    public ReturnVO<String> selectBusinessCategoryById(@PathVariable Long businessCategoryId) {
        return businessCategoryService.selectBusinessCategoryById(businessCategoryId);
    }

}
